import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '@/components/layout/layoutBasic.vue'
import SearchPage from '@/components/pages/SearchPage/index.vue'

// Define route records with type assertion
const routes = [
  { path: '/', component: HomeView },
  { path: '/search', component: SearchPage },
]

// Create the router instance with proper type definitions
export const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

